package com.lmiot.xyclick.Auto;

import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.text.TextUtils;
import android.util.Log;
import com.google.gson.Gson;
import com.lmiot.xyclick.ActionDetailBean.DetailBean;
import com.lmiot.xyclick.Activity.AddActionActivity;
import com.lmiot.xyclick.App.MyApp;
import com.lmiot.xyclick.Bean.NewBean.FindDataResBean;
import com.lmiot.xyclick.Bean.PushResultBean;
import com.lmiot.xyclick.Bean.ResumeActivityBean;
import com.lmiot.xyclick.Bean.SQL.ActionBean;
import com.lmiot.xyclick.Bean.SQL.ActionBeanSqlUtil;
import com.lmiot.xyclick.Bean.SQL.AutoBean;
import com.lmiot.xyclick.Bean.SQL.AutoBeanSqlUtil;
import com.lmiot.xyclick.Util.Constants;
import com.lmiot.xyclick.Util.DataUtil;
import com.lmiot.xyclick.Util.HttpUtilNew;
import com.lmiot.xyclick.Util.LayoutDialogUtil;
import com.lmiot.xyclick.Util.LogUtil;
import com.lmiot.xyclick.Util.LoopUtils;
import com.lmiot.xyclick.Util.PhoneUtil;
import com.lmiot.xyclick.Util.TimeUtils;
import com.lmiot.xyclick.inteface.OnBasicListener;
//import com.lmiot.xyclick.jpush.PushUtils;
import com.xiaoyi.intentsdklibrary.Bean.ShareBean;
import com.xiaoyi.intentsdklibrary.SDK.Action.ActionAsSDK;
import com.youyi.yychosesdk.utils.file.FileUtils;
import com.youyi.yyviewsdklibrary.ArrayGson;
import com.youyi.yyviewsdklibrary.Dialog.util.ToastUtil;
import com.zhy.android.percent.support.PercentLayoutHelper;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import com.lmiot.xyclick.Util.Typography;
import org.greenrobot.eventbus.EventBus;

public class AutoUtils {
    private static final String TAG = "AutoUtils";
    public static int insertNum = -1;
    public static List<ActionBean> mActionBeanList;
    public static String mAutoID;
    public static String mAutoName;
    public static String mAutoType;
    public static String mAutoTypeDetail;
    public static String mGroupID;
    public static boolean mIsEnable;
    public static boolean mIsRandomRepeat;
    public static int mRandomMax;
    public static int mRandomMin;
    public static int mRepeatTime;
    public static boolean mShowNotic;
    public static String mTitle;

    public static void clearData() {
        Log.d(TAG, "resumeAddActivity：clearData");
        mTitle = "新建自动化";
        mAutoID = null;
        mAutoName = null;
        mGroupID = null;
        mAutoTypeDetail = null;
        mRepeatTime = 1;
        mAutoType = AutoTypeEnum.click.toString();
        mActionBeanList = null;
        mIsRandomRepeat = false;
        mRandomMin = 1;
        mRandomMax = 1;
        mShowNotic = false;
        insertNum = -1;
        mIsEnable = false;
    }

    public static void resumeAddActivity(Context context) {
        Intent intent = new Intent(context, AddActionActivity.class);
        if (context instanceof MyApp) {
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        }
        MyApp.getContext().startActivity(intent);
    }

    public static void editAuto(Context context, AutoBean autoBean) {
        gotAddActionActivity(context, autoBean.getAutoID(), autoBean.getAutoName(), autoBean.getGroupID());
    }

    public static void gotAddActionActivity(Context context, String str, String str2, String str3) {
        clearData();
        Intent intent = new Intent(context, AddActionActivity.class);
        if (context instanceof MyApp) {
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        }
        mAutoID = str;
        mGroupID = str3;
        mAutoName = str2;
        AutoBean searchByID = AutoBeanSqlUtil.getInstance().searchByID(mAutoID);
        if (searchByID != null) {
            mTitle = "编辑自动化";
            mRepeatTime = searchByID.getRepeatNum();
            mAutoType = searchByID.getAutoType();
            mActionBeanList = ActionBeanSqlUtil.getInstance().searchByID(searchByID.getAutoID());
            mAutoName = str2;
            mAutoTypeDetail = searchByID.getAutoTypeDetail();
            mIsRandomRepeat = searchByID.getIsRandomRepeat();
            mRandomMin = searchByID.getRandomMin();
            mRandomMax = searchByID.getRandomMax();
            mShowNotic = searchByID.getShowNotic();
            mIsEnable = searchByID.getIsEnable();
        }
        if (TextUtils.isEmpty(mAutoID)) {
            mAutoID = TimeUtils.createID();
        }
        if (TextUtils.isEmpty(mAutoName)) {
            mAutoName = "新建自动化";
        }
        if (TextUtils.isEmpty(mGroupID)) {
            mGroupID = "666";
        }
        if (mAutoTypeDetail == null) {
            mAutoTypeDetail = "";
        }
        if (mRepeatTime == 0) {
            mRepeatTime = 1;
        }
        if (mRandomMin < 0) {
            mRandomMin = 1;
        }
        if (mRandomMax < 0) {
            mRandomMax = 1;
        }
        if (mAutoType == null) {
            mAutoType = AutoTypeEnum.click.toString();
        }
        if (mActionBeanList == null) {
            mActionBeanList = new ArrayList();
        }
        context.startActivity(intent);
    }

    public static void addAction(ActionBean actionBean) {
        LogUtil.d(TAG, "添加动作=" + insertNum);
        int i = insertNum;
        if (i == -1) {
            mActionBeanList.add(actionBean);
        } else {
            try {
                mActionBeanList.add(i + 1, actionBean);
            } catch (Exception unused) {
                mActionBeanList.add(actionBean);
            }
        }
        for (int i2 = 0; i2 < mActionBeanList.size(); i2++) {
            mActionBeanList.get(i2).setSortNum(i2);
        }
        EventBus.getDefault().post(new ResumeActivityBean(false));
    }

    public static boolean hasAs(AutoBean autoBean) {
        List<ActionBean> searchByID = ActionBeanSqlUtil.getInstance().searchByID(autoBean.getAutoID());
        if (searchByID != null && searchByID.size() > 0) {
            for (ActionBean actionBean : searchByID) {
                Constants.ActionEnum findEnum = findEnum(actionBean.getActionType());
                if (findEnum != null && findEnum.isAs()) {
                    return true;
                }
            }
        }
        return false;
    }

    private static Constants.ActionEnum findEnum(String str) {
        try {
            Constants.ActionEnum[] values = Constants.ActionEnum.values();
            for (Constants.ActionEnum actionEnum : values) {
                if (actionEnum.getType().equals(str)) {
                    return actionEnum;
                }
            }
            return null;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public static boolean canEdit(AutoBean autoBean) {
        boolean isShareAuto = autoBean.getIsShareAuto();
        String password = autoBean.getPassword();
        String shareUserID = autoBean.getShareUserID();
        if (!isShareAuto || shareUserID.equals(PhoneUtil.getIMEI(MyApp.getContext())) || TextUtils.isEmpty(password)) {
            return true;
        }
        return false;
    }

    public static boolean canUpLoad(AutoBean autoBean) {
        boolean isShareAuto = autoBean.getIsShareAuto();
        autoBean.getPassword();
        String shareUserID = autoBean.getShareUserID();
        if (!isShareAuto || shareUserID.equals(PhoneUtil.getIMEI(MyApp.getContext()))) {
            return true;
        }
        return false;
    }

    public static boolean isSelfData(ShareBean shareBean) {
        try {
            if (shareBean.getAccount_id().equals(PhoneUtil.getIMEI(MyApp.getContext()))) {
                return true;
            }
            return false;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }

    public static void downAutoData(Context context, String str, String str2) {
        if (!DataUtil.getVip(MyApp.getContext())) {
            LayoutDialogUtil.checkVIP(context);
        } else {
            HttpUtilNew.getInstance().downAutoFile(str, str2, new HttpUtilNew.OnShareDataListener() {
                /* class com.lmiot.xyclick.Auto.AutoUtils.AnonymousClass1 */

                @Override // com.lmiot.xyclick.Util.HttpUtilNew.OnShareDataListener
                public void result(List<FindDataResBean.BodyBean.DataBean.BacklistBean> list) {
                    if (list != null && list.size() > 0) {
                        try {
                            FindDataResBean.BodyBean.DataBean.BacklistBean backlistBean = list.get(0);
                            final String str = backlistBean.getBank_id().split("_")[1];
                            File file = new File(Environment.getExternalStorageDirectory() + "/XYclick/data", str + "." + DataUtil.FILE_XYCLICK_DATA);
                            if (!file.exists()) {
                                file.createNewFile();
                            }
                            AutoBeanSqlUtil.getInstance().delByID(str);
                            ActionBeanSqlUtil.getInstance().delByID(str);
                            com.lmiot.xyclick.Util.FileUtils.base64StringToFile(backlistBean.getFile_context(), file.getAbsolutePath());
                            LoopUtils.unZipAuto(str, file, new LoopUtils.onUnZipFinishListener() {
                                @Override // com.lmiot.xyclick.Util.LoopUtils.onUnZipFinishListener
                                public void result(boolean z) {
                                    AutoBean searchByID = AutoBeanSqlUtil.getInstance().searchByID(str);
                                    if (searchByID != null) {
                                        ToastUtil.success("收到分享自动化：" + searchByID.getAutoName());
//                                        EventBus.getDefault().post(new PushResultBean(PushUtils.PUSH_RESULT_CHANGE_DATA, 0, ""));
                                    }
                                }
                            });
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                }
            });
        }
    }

    public static void downAndRunAutoData(String str, String str2, final OnBasicListener onBasicListener) {
        if (!DataUtil.getVip(MyApp.getContext())) {
            LayoutDialogUtil.checkVIP(MyApp.getContext());
        } else {
            HttpUtilNew.getInstance().downAutoFile(str, str2, new HttpUtilNew.OnShareDataListener() {
                /* class com.lmiot.xyclick.Auto.AutoUtils.AnonymousClass2 */

                @Override // com.lmiot.xyclick.Util.HttpUtilNew.OnShareDataListener
                public void result(List<FindDataResBean.BodyBean.DataBean.BacklistBean> list) {
                    if (list != null && list.size() > 0) {
                        try {
                            FindDataResBean.BodyBean.DataBean.BacklistBean backlistBean = list.get(0);
                            final String str = backlistBean.getBank_id().split("_")[1];
                            File file = new File(Environment.getExternalStorageDirectory() + "/XYclick/data", str + "." + DataUtil.FILE_XYCLICK_DATA);
                            if (!file.exists()) {
                                file.createNewFile();
                            }
                            com.lmiot.xyclick.Util.FileUtils.base64StringToFile(backlistBean.getFile_context(), file.getAbsolutePath());
                            LoopUtils.unZipAuto(str, file, new LoopUtils.onUnZipFinishListener() {
                                /* class com.lmiot.xyclick.Auto.AutoUtils.AnonymousClass2.AnonymousClass1 */

                                @Override // com.lmiot.xyclick.Util.LoopUtils.onUnZipFinishListener
                                public void result(boolean z) {
                                    if (onBasicListener!= null) {
                                        onBasicListener.result(true, str);
                                    }
                                }
                            });
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                }
            });
        }
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    public static String getMarkString(ActionBean actionBean) {
        char c;
        String str;
        try {
            String actionType = actionBean.getActionType();
            DetailBean detailBean = (DetailBean) new ArrayGson().fromJson(actionBean.getDetail(), DetailBean.class);
            char c2 = 65535;
            switch (actionType.hashCode()) {
                case -1962927546:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE_ALL)) {
                        c2 = 20;
                        break;
                    }
                    break;
                case -1962914365:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR)) {
                        c2 = 21;
                        break;
                    }
                    break;
                case -1815477287:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG)) {
                        c2 = 'G';
                        break;
                    }
                    break;
                case -1815473246:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR)) {
                        c2 = 'S';
                        break;
                    }
                    break;
                case -1815463837:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_IMG)) {
                        c2 = 'E';
                        break;
                    }
                    break;
                case -1806167109:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_LENGTH)) {
                        c2 = 'O';
                        break;
                    }
                    break;
                case -1803988169:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TIMES)) {
                        c2 = 5;
                        break;
                    }
                    break;
                case -1763891370:
                    if (actionType.equals(Constants.ACTION_TYPE_COPY_SCREEN_TEXT)) {
                        c2 = 27;
                        break;
                    }
                    break;
                case -1748612358:
                    if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_TEXT)) {
                        c2 = '#';
                        break;
                    }
                    break;
                case -1747771512:
                    if (actionType.equals(Constants.ACTION_CLICK_PERCENT_XY)) {
                        c2 = 4;
                        break;
                    }
                    break;
                case -1720712411:
                    if (actionType.equals(Constants.ACTION_TYPE_RANDOM_DELAY_TIME)) {
                        c2 = '?';
                        break;
                    }
                    break;
                case -1688822809:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_HAND)) {
                        c2 = 'd';
                        break;
                    }
                    break;
                case -1688461147:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT)) {
                        c2 = 'p';
                        break;
                    }
                    break;
                case -1688376083:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT)) {
                        c2 = 'l';
                        break;
                    }
                    break;
                case -1654991382:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT)) {
                        c2 = 29;
                        break;
                    }
                    break;
                case -1614455551:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_PLUS_GOTO)) {
                        c2 = 'Z';
                        break;
                    }
                    break;
                case -1573253640:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_LISTVIEW)) {
                        c2 = 'n';
                        break;
                    }
                    break;
                case -1555612659:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CHECK)) {
                        c2 = 'h';
                        break;
                    }
                    break;
                case -1554995982:
                    if (actionType.equals(Constants.ACTION_TYPE_REMOTE_RUN)) {
                        c2 = 31;
                        break;
                    }
                    break;
                case -1528846928:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_INPUT)) {
                        c2 = 'g';
                        break;
                    }
                    break;
                case -1465745048:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_ANDROID)) {
                        c2 = 'I';
                        break;
                    }
                    break;
                case -1431420264:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PATHLISt)) {
                        c2 = 16;
                        break;
                    }
                    break;
                case -1350871331:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_DRAP_TO)) {
                        c2 = 15;
                        break;
                    }
                    break;
                case -1282707776:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_IMG)) {
                        c2 = 'k';
                        break;
                    }
                    break;
                case -1210206765:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_LIST)) {
                        c2 = '\"';
                        break;
                    }
                    break;
                case -1184644365:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL_HAND)) {
                        c2 = 'c';
                        break;
                    }
                    break;
                case -1172618801:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT)) {
                        c2 = 'B';
                        break;
                    }
                    break;
                case -1159719049:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_RECT)) {
                        c2 = '!';
                        break;
                    }
                    break;
                case -1132382251:
                    if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET_RECT)) {
                        c2 = 7;
                        break;
                    }
                    break;
                case -1131150297:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_DELAY)) {
                        c2 = '+';
                        break;
                    }
                    break;
                case -1108914736:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_TEXT)) {
                        c2 = 'j';
                        break;
                    }
                    break;
                case -1070378249:
                    if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_MAX_MIN)) {
                        c2 = '\'';
                        break;
                    }
                    break;
                case -1066784745:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_PLUS)) {
                        c2 = 'T';
                        break;
                    }
                    break;
                case -1044171476:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_EMAIL)) {
                        c2 = '9';
                        break;
                    }
                    break;
                case -960206213:
                    if (actionType.equals(Constants.ACTION_TYPE_REMOTE_STOP)) {
                        c2 = ' ';
                        break;
                    }
                    break;
                case -935451011:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_Points)) {
                        c2 = '\f';
                        break;
                    }
                    break;
                case -921545414:
                    if (actionType.equals(Constants.ACTION_TYPE_PAST_TEXT)) {
                        c2 = '(';
                        break;
                    }
                    break;
                case -915840004:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR)) {
                        c2 = 'K';
                        break;
                    }
                    break;
                case -907533321:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_LOGIC)) {
                        c2 = '[';
                        break;
                    }
                    break;
                case -897581110:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WHILE)) {
                        c2 = 'W';
                        break;
                    }
                    break;
                case -887424920:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_AND_DOT)) {
                        c2 = 'H';
                        break;
                    }
                    break;
                case -863936354:
                    if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_THREE)) {
                        c2 = '&';
                        break;
                    }
                    break;
                case -833024575:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_DRAP_CLICK_IMG)) {
                        c2 = '1';
                        break;
                    }
                    break;
                case -818317168:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_CHECKED)) {
                        c2 = 'r';
                        break;
                    }
                    break;
                case -815136703:
                    if (actionType.equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
                        c2 = '3';
                        break;
                    }
                    break;
                case -776535233:
                    if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT)) {
                        c2 = '$';
                        break;
                    }
                    break;
                case -772684081:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_A_TO_B)) {
                        c2 = '\r';
                        break;
                    }
                    break;
                case -747218534:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_DES)) {
                        c2 = 'q';
                        break;
                    }
                    break;
                case -741443391:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_GET_RECT_TECT)) {
                        c2 = '<';
                        break;
                    }
                    break;
                case -735797586:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT_OCR)) {
                        c2 = 'D';
                        break;
                    }
                    break;
                case -720712225:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RECT)) {
                        c2 = 23;
                        break;
                    }
                    break;
                case -702563113:
                    if (actionType.equals(Constants.ACTION_CLICK_XY)) {
                        c2 = 3;
                        break;
                    }
                    break;
                case -667301681:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT_WAIT)) {
                        c2 = 'm';
                        break;
                    }
                    break;
                case -666784441:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT)) {
                        c2 = 25;
                        break;
                    }
                    break;
                case -666741787:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES)) {
                        c2 = '\b';
                        break;
                    }
                    break;
                case -635002049:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL)) {
                        c2 = 'b';
                        break;
                    }
                    break;
                case -605553427:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_START)) {
                        c2 = 'Q';
                        break;
                    }
                    break;
                case -604104575:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT_HAND)) {
                        c2 = 'e';
                        break;
                    }
                    break;
                case -581264932:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT_RECT)) {
                        c2 = 26;
                        break;
                    }
                    break;
                case -557756589:
                    if (actionType.equals(Constants.ACTION_TYPE_ACLIST)) {
                        c2 = 'U';
                        break;
                    }
                    break;
                case -488247915:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK)) {
                        c2 = 0;
                        break;
                    }
                    break;
                case -445065814:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_GOTO)) {
                        c2 = 'Y';
                        break;
                    }
                    break;
                case -444688012:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT)) {
                        c2 = 'A';
                        break;
                    }
                    break;
                case -444684524:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TIME)) {
                        c2 = 'J';
                        break;
                    }
                    break;
                case -444602948:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT)) {
                        c2 = 'X';
                        break;
                    }
                    break;
                case -416479067:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_CALL)) {
                        c2 = '=';
                        break;
                    }
                    break;
                case -368281682:
                    if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET)) {
                        c2 = 6;
                        break;
                    }
                    break;
                case -287244634:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_OPEN_WEB)) {
                        c2 = ':';
                        break;
                    }
                    break;
                case -240233156:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_POSITION)) {
                        c2 = 30;
                        break;
                    }
                    break;
                case -31627645:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_DOUBLE_CLICK)) {
                        c2 = 1;
                        break;
                    }
                    break;
                case 4088742:
                    if (actionType.equals(Constants.ACTION_TYPE_CLICK_IMG_OFFSET)) {
                        c2 = '/';
                        break;
                    }
                    break;
                case 153596125:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK)) {
                        c2 = ']';
                        break;
                    }
                    break;
                case 207152864:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR_RECT)) {
                        c2 = 24;
                        break;
                    }
                    break;
                case 236872539:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_AND_CLICK_ID)) {
                        c2 = '^';
                        break;
                    }
                    break;
                case 250989520:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_PACKNAME)) {
                        c2 = 's';
                        break;
                    }
                    break;
                case 301325639:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_LONG_CLICK)) {
                        c2 = 'f';
                        break;
                    }
                    break;
                case 400341985:
                    if (actionType.equals(Constants.ACTION_TYPE_PHONE_SPEAK)) {
                        c2 = '@';
                        break;
                    }
                    break;
                case 466857327:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES_RECT)) {
                        c2 = '.';
                        break;
                    }
                    break;
                case 471723478:
                    if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT_USERNAME)) {
                        c2 = '%';
                        break;
                    }
                    break;
                case 479822062:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PLUS)) {
                        c2 = 14;
                        break;
                    }
                    break;
                case 484400777:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_IMG)) {
                        c2 = '0';
                        break;
                    }
                    break;
                case 500571023:
                    if (actionType.equals(Constants.ACTION_TYPE_DO_INSIGN_AUTO)) {
                        c2 = '2';
                        break;
                    }
                    break;
                case 616245594:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_Points)) {
                        c2 = 11;
                        break;
                    }
                    break;
                case 641427902:
                    if (actionType.equals(Constants.ACTION_TYPE_PHONE_VIBRATE)) {
                        c2 = '4';
                        break;
                    }
                    break;
                case 716062712:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_LAST)) {
                        c2 = 19;
                        break;
                    }
                    break;
                case 716254006:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RNUM)) {
                        c2 = 22;
                        break;
                    }
                    break;
                case 716390103:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_WAIT)) {
                        c2 = 17;
                        break;
                    }
                    break;
                case 732456607:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_CONTAIN)) {
                        c2 = 'P';
                        break;
                    }
                    break;
                case 773008305:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_ACTIVITY)) {
                        c2 = '_';
                        break;
                    }
                    break;
                case 819178436:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_QQ_TALK)) {
                        c2 = '7';
                        break;
                    }
                    break;
                case 921420644:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE)) {
                        c2 = 18;
                        break;
                    }
                    break;
                case 961237000:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_ALL)) {
                        c2 = ',';
                        break;
                    }
                    break;
                case 1070540303:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_SCREEN)) {
                        c2 = 'L';
                        break;
                    }
                    break;
                case 1091167288:
                    if (actionType.equals(Constants.ACTION_TYPE_SET_SCREEN)) {
                        c2 = '6';
                        break;
                    }
                    break;
                case 1143857607:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID)) {
                        c2 = 'o';
                        break;
                    }
                    break;
                case 1187973862:
                    if (actionType.equals(Constants.ACTION_TYPE_SET_VOLUME)) {
                        c2 = '5';
                        break;
                    }
                    break;
                case 1196165383:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_ALL)) {
                        c2 = '\\';
                        break;
                    }
                    break;
                case 1210798333:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_PICK)) {
                        c2 = '*';
                        break;
                    }
                    break;
                case 1276644898:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_BREAK)) {
                        c2 = 'V';
                        break;
                    }
                    break;
                case 1319262272:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES_MS)) {
                        c2 = '\t';
                        break;
                    }
                    break;
                case 1359443941:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK)) {
                        c2 = 2;
                        break;
                    }
                    break;
                case 1399827896:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_MORE)) {
                        c2 = 'N';
                        break;
                    }
                    break;
                case 1399966791:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_RECT)) {
                        c2 = 'M';
                        break;
                    }
                    break;
                case 1464841489:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_MSG)) {
                        c2 = '>';
                        break;
                    }
                    break;
                case 1563175462:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG)) {
                        c2 = ')';
                        break;
                    }
                    break;
                case 1576991116:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_N)) {
                        c2 = 'a';
                        break;
                    }
                    break;
                case 1704622709:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_UNCHECK)) {
                        c2 = 'i';
                        break;
                    }
                    break;
                case 1763285971:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_OCR)) {
                        c2 = 'C';
                        break;
                    }
                    break;
                case 1789971089:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_HAND)) {
                        c2 = '`';
                        break;
                    }
                    break;
                case 1801637470:
                    if (actionType.equals(Constants.ACTION_TYPE_COPY_RECT_TEXT)) {
                        c2 = 28;
                        break;
                    }
                    break;
                case 1809410086:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_END)) {
                        c2 = 'R';
                        break;
                    }
                    break;
                case 2016976960:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_IMG_RECT)) {
                        c2 = 'F';
                        break;
                    }
                    break;
                case 2031607117:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_RECT_TIMES)) {
                        c2 = '\n';
                        break;
                    }
                    break;
                case 2049763798:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_WX_XIAO)) {
                        c2 = '8';
                        break;
                    }
                    break;
                case 2073083772:
                    if (actionType.equals(Constants.ACTION_TYPE_TOOL_URL_SCHEME)) {
                        c2 = ';';
                        break;
                    }
                    break;
                case 2138740411:
                    if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ACTIVITY)) {
                        c2 = 't';
                        break;
                    }
                    break;
                case 2144954836:
                    if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES)) {
                        c2 = '-';
                        break;
                    }
                    break;
            }
            String str2 = "秒";
            switch (c2) {
                case 0:
                case 1:
                case 2:
                    return "备注：" + actionBean.getActionName() + "(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case 3:
                    return "备注：" + actionBean.getActionName() + "(" + detailBean.getClickX() + "," + detailBean.getClickY() + ")";
                case 4:
                    return "备注：" + actionBean.getActionName() + "(X:" + detailBean.getClickX() + "%,Y:" + detailBean.getClickY() + "%)";
                case 5:
                    return "备注：模拟点击" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case 6:
                    return "备注：点击文字(" + detailBean.getText() + "),偏移量X=" + detailBean.getOffsetX() + ",Y=" + detailBean.getOffsetY();
                case 7:
                    return "备注：区域内点击文字(" + detailBean.getText() + "),偏移量X=" + detailBean.getOffsetX() + ",Y=" + detailBean.getOffsetY();
                case '\b':
                    return "备注：模拟长按" + detailBean.getDruation() + "秒(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case '\t':
                    return "备注：模拟长按" + detailBean.getDruation() + "毫秒(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case '\n':
                    return "备注：区域内模拟点击" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case 11:
                    return "备注：同时点击" + detailBean.getPointBeanList().size() + "个点" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case '\f':
                    return "备注：同时按住" + detailBean.getPointBeanList().size() + "个点" + detailBean.getDruation() + str2;
                case '\r':
                case 14:
                    return "备注：模拟从A点(" + detailBean.getPointBeanList().get(0).getX() + "," + detailBean.getPointBeanList().get(0).getY() + ")滑动到B点(" + detailBean.getPointBeanList().get(1).getX() + "," + detailBean.getPointBeanList().get(1).getY() + ")";
                case 15:
                    return "备注：模拟A点(" + detailBean.getPointBeanList().get(0).getX() + "," + detailBean.getPointBeanList().get(0).getY() + ")拖动到B点(" + detailBean.getPointBeanList().get(1).getX() + "," + detailBean.getPointBeanList().get(1).getY() + ")";
                case 16:
                    return "备注：滑动路径包含" + detailBean.getPointBeanList().size() + "个点";
                case 17:
                    return "备注：等待点击文字" + detailBean.getText() + "，超时时间：" + detailBean.getDruation() + str2;
                case 18:
                case 19:
                case 20:
                case 21:
                    return "备注：点击文字" + detailBean.getText();
                case 22:
                    return "备注：点击文字" + detailBean.getText() + "，指定第" + detailBean.getValue() + "个";
                case 23:
                case 24:
                    return "备注：区域内点击文字" + detailBean.getText();
                case 25:
                    return "备注：模拟长按文字" + detailBean.getText();
                case 26:
                    return "备注：区域内模拟长按文字" + detailBean.getText();
                case 27:
                    return "备注：" + actionBean.getActionName();
                case 28:
                    return "备注：复制区域内所有文字";
                case 29:
                    return "备注：模拟输入文字" + detailBean.getText() + "(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case 30:
                    return "备注：第" + detailBean.getValue() + "个输入框输入文字" + detailBean.getText();
                case 31:
                    AutoBean searchByID = AutoBeanSqlUtil.getInstance().searchByID(detailBean.getRemoteAutoID());
                    if (searchByID != null) {
                        return "执行：设备数量" + detailBean.getRemoteDevList().size() + "个\n动作：" + searchByID.getAutoName();
                    }
                    return "执行：设备数量" + detailBean.getRemoteDevList().size() + "个";
                case ' ':
                    return "停止：设备数量" + detailBean.getRemoteDevList().size() + "个";
                case '!':
                    return "备注：区域内输入文字" + detailBean.getText();
                case '\"':
                    return "备注：表单填充" + detailBean.getStringList().size() + "条内容";
                case '#':
                    return "备注：文本库包含" + detailBean.getStringList().size() + "条内容";
                case '$':
                    return "备注：文本库包含" + detailBean.getStringList().size() + "条内容";
                case '%':
                    return "备注：文本库包含" + detailBean.getTextUserList().size() + "个账号";
                case '&':
                    return "备注：文本库包含" + detailBean.getThreeBeanList().size() + "组数据";
                case '\'':
                    return "备注：输入范围" + detailBean.getMinNum() + "～" + detailBean.getMaxNum();
                case '(':
                    return "备注：此处输入剪切板文字(" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case ')':
                    return "备注：模拟点击图片1次";
                case '*':
                    return "备注：模拟点击图片1次，相似度：" + detailBean.getRepeat() + "%";
                case '+':
                    return "备注：延迟点击图片1次，相似度：" + detailBean.getRepeat() + "%，延迟时间：" + detailBean.getDruation();
                case ',':
                    return "备注：模拟点击所有目标图片";
                case '-':
                    return "备注：模拟点击图片" + detailBean.getRepeat() + "" + "次";
                case '.':
                    return "备注：区域内模拟点击图片" + detailBean.getRepeat() + "" + "次";
                case '/':
                    return "备注：点击图片,偏移量X=" + detailBean.getOffsetX() + ",Y=" + detailBean.getOffsetY();
                case '0':
                    return "备注：模拟长按图片" + detailBean.getDruation() + str2;
                case '1':
                    return "备注：模拟拖动图片到位置（" + detailBean.getPointBean().getX() + "," + detailBean.getPointBean().getY() + ")";
                case '2':
                    return "备注：执行自动化(" + actionBean.getActionName() + ")";
                case '3':
                    StringBuilder sb = new StringBuilder();
                    sb.append("备注：打开应用(");
                    sb.append(actionBean.getActionName());
                    sb.append(",");
                    sb.append(detailBean.isAppNew() ? "重启方式" : "恢复方式");
                    sb.append(")");
                    return sb.toString();
                case '4':
                    return "备注：振动时间为" + detailBean.getValue() + "ms";
                case '5':
                    return "备注：设置音量为" + detailBean.getValue();
                case '6':
                    return "备注：设置屏幕亮度为" + detailBean.getValue();
                case '7':
                    return "备注：指定qq聊天(" + detailBean.getText() + ")";
                case '8':
                    return "备注：小程序ID(" + detailBean.getText() + ")";
                case '9':
                    return "备注：往邮箱(" + detailBean.getText() + ")发送内容(" + detailBean.getMsg() + ")";
                case ':':
                    return "备注：打开网页(" + detailBean.getText() + ")";
                case ';':
                    return "备注：打开Url Scheme(" + detailBean.getText() + ")";
                case '<':
                    return "备注：复制区域文字到剪切板(" + detailBean.getRect().left + "," + detailBean.getRect().right + "," + detailBean.getRect().top + "," + detailBean.getRect().bottom + ")";
                case '=':
                    return "备注：拨打电话(" + detailBean.getText() + ")";
                case '>':
                    return "备注：给号码" + detailBean.getText() + "发送信息" + detailBean.getMsg();
                case '?':
                    boolean delayUnitMs = ActionAsSDK.getDelayUnitMs(MyApp.getContext());
                    StringBuilder sb2 = new StringBuilder();
                    sb2.append("备注：随机延时");
                    sb2.append(detailBean.getMinNum());
                    sb2.append("～");
                    sb2.append(detailBean.getMaxNum());
                    if (delayUnitMs) {
                        str2 = "毫秒";
                    }
                    sb2.append(str2);
                    return sb2.toString();
                case '@':
                    return "备注：手机播报内容(" + detailBean.getValue() + ")";
                case 'A':
                    return "文字：" + detailBean.getText() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'B':
                    return "文字：" + detailBean.getText() + "(区域)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'C':
                    return "文字：" + detailBean.getText() + "(加强版)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'D':
                    return "文字：" + detailBean.getText() + "(加强版、区域)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'E':
                    return "图片：" + detailBean.getImgPath() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'F':
                    return "图片：" + detailBean.getImgPath() + "(区域)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'G':
                case 'H':
                case 'I':
                    String sign = detailBean.getSign();
                    switch (sign.hashCode()) {
                        case -1570081146:
                            if (sign.equals(Constants.SIGN_NOT_EQUAL)) {
                                c = 5;
                                break;
                            }
                            c = 65535;
                            break;
                        case -191459948:
                            if (sign.equals(Constants.SIGN_SMAL_AND_EQUAL)) {
                                c = 4;
                                break;
                            }
                            c = 65535;
                            break;
                        case 251373074:
                            if (sign.equals(Constants.SIGN_EQUAL)) {
                                c = 2;
                                break;
                            }
                            c = 65535;
                            break;
                        case 263818365:
                            if (sign.equals(Constants.SIGN_SAMLL)) {
                                c = 1;
                                break;
                            }
                            c = 65535;
                            break;
                        case 514467563:
                            if (sign.equals(Constants.SIGN_BIG_AND_EQUAL)) {
                                c = 3;
                                break;
                            }
                            c = 65535;
                            break;
                        case 1095229278:
                            if (sign.equals(Constants.SIGN_BIG)) {
                                c = 0;
                                break;
                            }
                            c = 65535;
                            break;
                        default:
                            c = 65535;
                            break;
                    }
                    if (c != 0) {
                        str = c != 1 ? c != 2 ? c != 3 ? c != 4 ? c != 5 ? "" : "!=" : "<=" : ">=" : "=" : "<";
                    } else {
                        str = ">";
                    }
                    return "条件：目标数字" + str + detailBean.getValue() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'J':
                    String startTime = detailBean.getStartTime();
                    String endTime = detailBean.getEndTime();
                    return "条件：" + startTime + "～" + endTime + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'K':
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(点)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'L':
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(全屏)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'M':
                case 'N':
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(区域)\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'O':
                    return "长度:" + detailBean.getMinNum() + "～" + detailBean.getMaxNum() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'P':
                    return "条件：字符串包含(" + detailBean.getText() + ")\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'Q':
                    return "条件：字符串以(" + detailBean.getText() + ")开头\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'R':
                    return "条件：字符串以(" + detailBean.getText() + ")结尾\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'S':
                    return "执行动作：" + detailBean.getDoActonBean().getActionName() + "\n执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case 'T':
                    return "动作数量：" + detailBean.getActionBeanList().size() + "个,\n执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case 'U':
                    return "动作数量：" + detailBean.getActionBeanList().size() + "个";
                case 'V':
                    return "执行动作：" + detailBean.getDoActonBean().getActionName() + ";\n执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次;\n中断条件：" + detailBean.getBreakIfBean().getIfName();
                case 'W':
                    return "执行条件：" + detailBean.getIfBean().getIfName() + ";\n执行动作：" + detailBean.getDoActonBean().getActionName();
                case 'X':
                    return "等待条件：" + detailBean.getIfBean().getIfName() + ";\n执行动作：" + detailBean.getDoActonBean().getActionName();
                case 'Y':
                    return "goto条件：跳转到第" + detailBean.getGotoNum() + "步动作;";
                case 'Z':
                    String mark = detailBean.getGotoAction().getMark();
                    if (TextUtils.isEmpty(mark)) {
                        return "goto加强版：跳转到动作-" + detailBean.getGotoAction().getActionName();
                    }
                    return "goto加强版：跳转到动作-" + mark;
                case '[':
                    return "多条件判断：包含" + detailBean.getLogicBeanList().size() + "个条件\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case '\\':
                    return "操作控件：" + detailBean.getViewBean().getNote();
                case ']':
                    return "点击控件：" + detailBean.getViewBean().getNote();
                case '^':
                    return "等待的ID(手动输入)：" + detailBean.getText() + "，等待时间" + detailBean.getDruation() + str2;
                case '_':
                    return "等待页面：" + detailBean.getActivityName() + ",超时时间:" + detailBean.getDruation() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case '`':
                    return "点击某个ID(手动输入)：" + detailBean.getText();
                case 'a':
                    return "点击某个ID(手动输入)：" + detailBean.getText() + "，第" + detailBean.getValue() + "个'";
                case 'b':
                    return "遍历点击控件：" + detailBean.getText();
                case 'c':
                    return "遍历点击控件(手动)：" + detailBean.getText();
                case 'd':
                    return "判断控件ID：" + detailBean.getText() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 'e':
                    return "等待控件ID：" + detailBean.getText() + "，等待时间：" + detailBean.getDruation() + "\n发现后:" + appendIfName(detailBean.getIFActionBean()) + "\n超时后:" + appendIfName(detailBean.getElseActionBean());
                case 'f':
                    return "长按控件：" + detailBean.getViewBean().getNote();
                case 'g':
                    return "控件：" + detailBean.getViewBean().getNote() + ",输入内容：" + detailBean.getViewBean().getStringValue();
                case 'h':
                    return "控件：" + detailBean.getViewBean().getNote() + "打开";
                case 'i':
                    return "控件：" + detailBean.getViewBean().getNote() + "关闭";
                case 'j':
                    return "等待文字为：" + detailBean.getText() + "，等待时间：" + detailBean.getDruation() + "\n发现后:" + appendIfName(detailBean.getIFActionBean()) + "\n超时后:" + appendIfName(detailBean.getElseActionBean());
                case 'k':
                    return "等待图片为：" + detailBean.getImgPath() + "，等待时间：" + detailBean.getDruation() + "\n发现后:" + appendIfName(detailBean.getIFActionBean()) + "\n超时后:" + appendIfName(detailBean.getElseActionBean());
                case 'l':
                    return "等待ID为：" + detailBean.getViewBean().getViewID() + "的控件出现，等待时间：" + detailBean.getDruation() + "\n发现后:" + appendIfName(detailBean.getIFActionBean()) + "\n超时后:" + appendIfName(detailBean.getElseActionBean());
                case 'm':
                    return "等待文字为：" + detailBean.getViewBean().getTextValue() + "的控件出现，等待时间：" + detailBean.getDruation() + "\n发现后:" + appendIfName(detailBean.getIFActionBean()) + "\n超时后:" + appendIfName(detailBean.getElseActionBean());
                case 'n':
                    return "遍历操作列表控件：" + detailBean.getViewBean().getNote() + ",\n遍历次数：" + detailBean.getRepeat() + "次，\n包含动作：" + detailBean.getActionBeanList().size() + "个";
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                    return detailBean.getViewBean().getNote() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 's':
                    return "判断当前包名：" + detailBean.getPackName() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case 't':
                    return "判断当前页面：" + detailBean.getActivityName() + "\n成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                default:
                    String mark2 = actionBean.getMark();
                    return !TextUtils.isEmpty(mark2) ? mark2 : actionBean.getActionName();
            }
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Throwable unused) {
        }
        return "";
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    private static String appendIfName(ActionBean actionBean) {
        char c;
        char c2;
        String str;
        try {
            DetailBean detailBean = (DetailBean) new Gson().fromJson(actionBean.getDetail(), DetailBean.class);
            String actionType = actionBean.getActionType();
            switch (actionType.hashCode()) {
                case -1815477287:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG)) {
                        c = 6;
                        break;
                    }
                    c = 65535;
                    break;
                case -1815473246:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR)) {
                        c = 18;
                        break;
                    }
                    c = 65535;
                    break;
                case -1815463837:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_IMG)) {
                        c = 4;
                        break;
                    }
                    c = 65535;
                    break;
                case -1806167109:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_LENGTH)) {
                        c = 14;
                        break;
                    }
                    c = 65535;
                    break;
                case -1614455551:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_PLUS_GOTO)) {
                        c = 25;
                        break;
                    }
                    c = 65535;
                    break;
                case -1554995982:
                    if (actionType.equals(Constants.ACTION_TYPE_REMOTE_RUN)) {
                        c = 27;
                        break;
                    }
                    c = 65535;
                    break;
                case -1465745048:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_ANDROID)) {
                        c = '\b';
                        break;
                    }
                    c = 65535;
                    break;
                case -1172618801:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT)) {
                        c = 1;
                        break;
                    }
                    c = 65535;
                    break;
                case -1066784745:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_PLUS)) {
                        c = 20;
                        break;
                    }
                    c = 65535;
                    break;
                case -960206213:
                    if (actionType.equals(Constants.ACTION_TYPE_REMOTE_STOP)) {
                        c = 28;
                        break;
                    }
                    c = 65535;
                    break;
                case -915840004:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR)) {
                        c = '\n';
                        break;
                    }
                    c = 65535;
                    break;
                case -907533321:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_LOGIC)) {
                        c = 26;
                        break;
                    }
                    c = 65535;
                    break;
                case -897581110:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WHILE)) {
                        c = 22;
                        break;
                    }
                    c = 65535;
                    break;
                case -887424920:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_AND_DOT)) {
                        c = 7;
                        break;
                    }
                    c = 65535;
                    break;
                case -735797586:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT_OCR)) {
                        c = 3;
                        break;
                    }
                    c = 65535;
                    break;
                case -605553427:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_START)) {
                        c = 16;
                        break;
                    }
                    c = 65535;
                    break;
                case -557756589:
                    if (actionType.equals(Constants.ACTION_TYPE_ACLIST)) {
                        c = 19;
                        break;
                    }
                    c = 65535;
                    break;
                case -445065814:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_GOTO)) {
                        c = 24;
                        break;
                    }
                    c = 65535;
                    break;
                case -444688012:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT)) {
                        c = 0;
                        break;
                    }
                    c = 65535;
                    break;
                case -444684524:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TIME)) {
                        c = '\t';
                        break;
                    }
                    c = 65535;
                    break;
                case -444602948:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT)) {
                        c = 23;
                        break;
                    }
                    c = 65535;
                    break;
                case 732456607:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_CONTAIN)) {
                        c = 15;
                        break;
                    }
                    c = 65535;
                    break;
                case 1070540303:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_SCREEN)) {
                        c = 11;
                        break;
                    }
                    c = 65535;
                    break;
                case 1276644898:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_BREAK)) {
                        c = 21;
                        break;
                    }
                    c = 65535;
                    break;
                case 1399827896:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_MORE)) {
                        c = '\r';
                        break;
                    }
                    c = 65535;
                    break;
                case 1399966791:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_RECT)) {
                        c = '\f';
                        break;
                    }
                    c = 65535;
                    break;
                case 1763285971:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_OCR)) {
                        c = 2;
                        break;
                    }
                    c = 65535;
                    break;
                case 1809410086:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_STR_END)) {
                        c = 17;
                        break;
                    }
                    c = 65535;
                    break;
                case 2016976960:
                    if (actionType.equals(Constants.ACTION_TYPE_IF_IMG_RECT)) {
                        c = 5;
                        break;
                    }
                    c = 65535;
                    break;
                default:
                    c = 65535;
                    break;
            }
            switch (c) {
                case 0:
                    return "文字：" + detailBean.getText() + ",成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 1:
                    return "文字：" + detailBean.getText() + "(区域),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 2:
                    return "文字：" + detailBean.getText() + "(加强版),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 3:
                    return "文字：" + detailBean.getText() + "(加强版、区域),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 4:
                    return "图片：" + detailBean.getImgPath() + ",成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 5:
                    return "图片：" + detailBean.getImgPath() + "(区域),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 6:
                case 7:
                case '\b':
                    String sign = detailBean.getSign();
                    switch (sign.hashCode()) {
                        case -1570081146:
                            if (sign.equals(Constants.SIGN_NOT_EQUAL)) {
                                c2 = 5;
                                break;
                            }
                            c2 = 65535;
                            break;
                        case -191459948:
                            if (sign.equals(Constants.SIGN_SMAL_AND_EQUAL)) {
                                c2 = 4;
                                break;
                            }
                            c2 = 65535;
                            break;
                        case 251373074:
                            if (sign.equals(Constants.SIGN_EQUAL)) {
                                c2 = 2;
                                break;
                            }
                            c2 = 65535;
                            break;
                        case 263818365:
                            if (sign.equals(Constants.SIGN_SAMLL)) {
                                c2 = 1;
                                break;
                            }
                            c2 = 65535;
                            break;
                        case 514467563:
                            if (sign.equals(Constants.SIGN_BIG_AND_EQUAL)) {
                                c2 = 3;
                                break;
                            }
                            c2 = 65535;
                            break;
                        case 1095229278:
                            if (sign.equals(Constants.SIGN_BIG)) {
                                c2 = 0;
                                break;
                            }
                            c2 = 65535;
                            break;
                        default:
                            c2 = 65535;
                            break;
                    }
                    if (c2 != 0) {
                        str = c2 != 1 ? c2 != 2 ? c2 != 3 ? c2 != 4 ? c2 != 5 ? "" : "!=" : "<=" : ">=" : "=" : "<";
                    } else {
                        str = ">";
                    }
                    return "条件：目标数字" + str + detailBean.getValue() + ",成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case '\t':
                    String startTime = detailBean.getStartTime();
                    String endTime = detailBean.getEndTime();
                    return "条件：" + startTime + "～" + endTime + ",成功:" + appendIfName(detailBean.getIFActionBean()) + "\n失败:" + appendIfName(detailBean.getElseActionBean());
                case '\n':
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(点),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 11:
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(全屏),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case '\f':
                case '\r':
                    return "颜色：" + detailBean.getIfBeanColor().getName() + "(区域),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 14:
                    return "长度:" + detailBean.getMinNum() + "～" + detailBean.getMaxNum() + ",成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 15:
                    return "条件：字符串包含(" + detailBean.getText() + "),成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 16:
                    return "条件：字符串以(" + detailBean.getText() + ")开头,成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 17:
                    return "条件：字符串以(" + detailBean.getText() + ")结尾,成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 18:
                    return "执行动作：" + detailBean.getDoActonBean().getActionName() + ",执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case 19:
                    return "动作数量：" + detailBean.getActionBeanList().size() + "个";
                case 20:
                    return "动作数量：" + detailBean.getActionBeanList().size() + "个,\n执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次";
                case 21:
                    return "执行动作：" + detailBean.getDoActonBean().getActionName() + ";,执行次数：" + (detailBean.getRepeat() + "").replace("-1", "无限") + "次;,中断条件：" + detailBean.getBreakIfBean().getIfName();
                case 22:
                    return "执行条件：" + detailBean.getIfBean().getIfName() + ";,执行动作：" + detailBean.getDoActonBean().getActionName();
                case 23:
                    return "等待条件：" + detailBean.getIfBean().getIfName() + ";,执行动作：" + detailBean.getDoActonBean().getActionName();
                case 24:
                    return "goto条件：跳转到第" + detailBean.getGotoNum() + "步动作;";
                case 25:
                    String mark = detailBean.getGotoAction().getMark();
                    if (TextUtils.isEmpty(mark)) {
                        return "goto加强版：跳转到动作-" + detailBean.getGotoAction().getActionName();
                    }
                    return "goto加强版：跳转到动作-" + mark;
                case 26:
                    return "多条件判断：包含" + detailBean.getLogicBeanList().size() + "个条件,成功:" + appendIfName(detailBean.getIFActionBean()) + ",失败:" + appendIfName(detailBean.getElseActionBean());
                case 27:
                    AutoBean searchByID = AutoBeanSqlUtil.getInstance().searchByID(detailBean.getRemoteAutoID());
                    if (searchByID != null) {
                        return "执行：设备数量" + detailBean.getRemoteDevList().size() + "个\n动作：" + searchByID.getAutoName();
                    }
                    return "执行：设备数量" + detailBean.getRemoteDevList().size() + "个";
                case 28:
                    return "停止：设备数量" + detailBean.getRemoteDevList().size() + "个";
                default:
                    return actionBean.getActionName();
            }
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Throwable unused) {
        }
        return "";
    }
}
